JavaScript

A5.Inknavigate Method

Syntax

A5.Ink.navigate(part,type[,scaleType])

Arguments

partstring

Which overlay to set. Values can be "editor" or "view".

typestring

The type of navigation to do. Values can be "left", "right", "up" and "down" with the optional "nudge-" prefix to move a smaller amount. Writing directions such as "forward", "back", "new-line", "prev-line", "next-line", "line-start", "line-end", "start" and "end". Lastly "scale" can be used to adjust the scale the ink is viewed at.

scaleTypenumberstringobject

If using "scale", there are several scale options. A numeric value will set the ink scale in terms of ink "dots" to pixels on the screen. A string value can either be "in" or "out" to zoom in or out, or can be a zoom percent such as "100%" in terms of ink units to display size. This means that at "100%" a 5x3in ink would display as 5x3in. If an object is passed in then some form of "fit" is expected. This will scale the ink to fit the availble space.

fitstring

The fit type, can be "both", "width" or "height".

marginnumber

The number of pixels to add to the edges of the ink when scaling.

autoScaleboolean

Whether to turn auto scaling on. If "true", then the scale will automatically refresh when the ink control is resized.

Description

Set the overlay HTML for the "editor" or "view" part.